package com.mdlib.helper.api.network;

/**
 * Created by librabin on 16/10/9.
 */

public class ApiException extends RuntimeException {

    private int errorCode;
    private String errorData;

    public ApiException(int code, String msg, String errorData) {
        super(msg);
        this.errorCode = code;
        this.errorData = errorData;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public String getErrorData() {
        return errorData;
    }
}
